﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Com.Framework.Data;

namespace Com.Library.DB.Recruit
{
	public class RecruitEntity : DataEntity
	{
		public int RecruitNo { get { return GetData2("n4RecruitNo", (int)0); } }
		public string Name { get { return GetData2("strName", string.Empty); } }
		public string PersonalNo { get { return GetData2("strPersonalNo", string.Empty); } }
		public string Phone { get { return GetData2("strPhone", string.Empty); } }
		public string Email { get { return GetData2("strEmail", string.Empty); } }
		public string PostNo { get { return GetData2("strPostNo", string.Empty); } }
		public string Address { get { return GetData2("strAddress", string.Empty); } }
		public string HopeStore { get { return GetData2("strHopeStore", string.Empty); } }
		public byte JobTime { get { return GetData2("n1JobTime", (byte)0); } }
		public string Academic { get { return GetData2("strAcademic", string.Empty); } }
		public string Career { get { return GetData2("strCareer", string.Empty); } }
		public string License { get { return GetData2("strLicense", string.Empty); } }
		public string FileURL { get { return GetData2("strFileURL", string.Empty); } }
		public byte Status { get { return GetData2("n1Status", (byte)0); } }
		public DateTime CreateDate { get { return GetData2("dtCreateDate", DateTime.MinValue); } }
		public DateTime ModifyDate { get { return GetData2("dtModifyDate", DateTime.MinValue); } }
		public string ManagerName { get { return GetData2("strManagerName", string.Empty); } }
		public string Description { get { return GetData2("strDescription", string.Empty); } }

		public string JobTimeName
		{
			get { return JobTime == 1 ? "정직원" : "파트타임"; }
		}

		public string StatusName
		{
			get {
				if (Status == 1)
					return "등록";
				else if (Status == 2)
					return "합격";
				else if (Status == 3)
					return "진행";
				else if (Status == 4)
					return "불합격";

				return "번호없음";
			}
		}
	}
}